package com.rpc.client;
import java.net.InetSocketAddress;

import com.rpc.service.HelloService;

public class Test{
	public static void main(String[] args) {
		for(int i=0;i<10000;i++){
		try{
	     HelloService service = RPCClient.getRemoteProxyObj(HelloService.class, new InetSocketAddress("localhost", 8088));
	     System.out.println(service.sayHi("test") + i );
	     
		}
		catch(Exception e){
			System.out.println("socket error");
		}
		}
	}

}